Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up GitHub Actions #837

Merged
merged 1 commit into from
Mar 10, 2020
Merged

Set up GitHub Actions #837

merged 1 commit into from
Mar 10, 2020

Conversation

iliana
Copy link
Contributor

@iliana iliana commented Mar 10, 2020

Issue number:

n/a

Description of changes:

Adds a workflow for testing builds on pull requests using our hosted runners.

Testing done:

This PR tests itself :)

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Comment on lines +7 to +12
runs-on: [self-hosted, linux, x64]
steps:
- uses: actions/checkout@v1
- run: cargo install --version 0.28.0 cargo-make
- run: cargo install --version 0.6.6 cargo-deny --no-default-features
- run: cargo make
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we wanted to extend this to also build arm64, what would that look like? Two separate actions, Build x86_64 and Build arm64?

We could do it here with cargo make clean ; cargo make -e BUILDSYS_ARCH=aarch64 but that would double the time it takes and ideally we'd run them in parallel.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep!

I think we might want to eventually do:

  • Build x86_64
  • Build aarch64
  • Unit tests

Copy link
Contributor

@zmrow zmrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

🥇

@bcressey
Copy link
Contributor

🥇

@iliana iliana merged commit c619bd2 into develop Mar 10, 2020
@iliana iliana deleted the github-actions branch March 10, 2020 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants